<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/static/img/touxiang.ico">
    <title>登录/注册 Green</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/static/css/signin.css" rel="stylesheet">

  </head>
  <body>
    <div class="container">
      <form class="form-signin" role="form" method="POST">
        <h2 class="form-signin-heading">注册/登录</h2>
          {% csrf_token %}
          {% for field in form %}
            {{ field }}
            {{ field.errors }}
          {% endfor %}
         <div class="checkbox">
          <label>
            <input type="checkbox" value="remember-me"> Remember me
          </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="javascript:this.form.action='{% url 'sign_up' %}';">登录</button>
        <button class="btn btn-lg btn-primary btn-block" type="submit" onclick="javascript:this.form.action='{% url 'sign_in' %}';">注册</button>
        </form>
    </div> <!-- /container -->
  </body>
</html>
